|
Log4j 1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpl.psnc.expres.model.resource.helper.ResourceHelper
public abstract class ResourceHelper
ResourceHelper class - set of utility methods for resource objects
| Constructor Summary | |
|---|---|
ResourceHelper()
|
|
| Method Summary | ||
|---|---|---|
static
|
getConcreteTypes(java.util.List<ResourceValue> resourceList,
java.lang.Class<T> concreteType)
Get a list of resources with a given type from the resource list |
|
static java.util.List<ResourceValue> |
getCorrelatorNodeList(java.util.List<ResourceValue> resourceList)
Get list of correlator nodes from the given resource list |
|
static java.util.List<ResourceValue> |
getFileServerList(java.util.List<ResourceValue> resourceList)
Get list of file servers from the given resource list |
|
static java.util.List<ResourceValue> |
getRadioTelescopeList(java.util.List<ResourceValue> resourceList)
Get list of radio telescopes from the given resource list |
|
static ResourceValue |
getResource(int id,
java.util.List<ResourceValue> resourceList)
Get instance of resource value by the given resource identifier or null if resource was not found. |
|
static ResourceValue |
getResourceByAbbr(java.lang.String abbr,
java.util.List<ResourceValue> resourceList)
Get instance of resource value by the given resource abbreviation or null if resource was not found. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ResourceHelper()
| Method Detail |
|---|
public static <T> java.util.List<ResourceValue> getConcreteTypes(java.util.List<ResourceValue> resourceList,
java.lang.Class<T> concreteType)
T - resource typeresourceList - resource listconcreteType - class instance of the given resource type
public static java.util.List<ResourceValue> getRadioTelescopeList(java.util.List<ResourceValue> resourceList)
resourceList - resource list
public static java.util.List<ResourceValue> getFileServerList(java.util.List<ResourceValue> resourceList)
resourceList - resource list
public static java.util.List<ResourceValue> getCorrelatorNodeList(java.util.List<ResourceValue> resourceList)
resourceList - resource list
public static ResourceValue getResourceByAbbr(java.lang.String abbr,
java.util.List<ResourceValue> resourceList)
null if resource was not found.
abbr - resource abbreviationresourceList - list of resources, instance of ResourceValue
public static ResourceValue getResource(int id,
java.util.List<ResourceValue> resourceList)
null if resource was not found.
id - resource identifierresourceList - list of resources, instance of ResourceValue
|
Log4j 1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||